package com.neuedu.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.neuedu.entity.UserAnswerItem;
import com.neuedu.mapper.UserAnswerItemMapper;
import com.neuedu.service.UserAnswerItemService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 * 答题明细表 服务实现类
 * </p>
 *
 * @author wangyu
 * @since 2025-09-17
 */
@Service
public class UserAnswerItemServiceImpl extends ServiceImpl<UserAnswerItemMapper, UserAnswerItem> implements UserAnswerItemService {

    @Override
    public List<UserAnswerItem> list(long answerId) {
        QueryWrapper<UserAnswerItem> wrapper = new QueryWrapper<>();
        wrapper.eq("answer_id", answerId);
        return this.list(wrapper);
    }
}
